package cc.uncarbon.module.custom.model.request;

import cc.uncarbon.framework.core.constant.HelioConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-分页列表商户 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminStoreListDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "商户名称(关键词)")
    private String name;

    @Schema(description = "商户地址(关键词)")
    private String address;

    @Schema(description = "商户Logo图片链接(关键词)")
    private String logo;

    @Schema(description = "法人姓名(关键词)")
    private String legalPersonName;

    @Schema(description = "法人联系电话(关键词)")
    private String legalPersonPhone;

    @Schema(description = "身份证正面图片链接(关键词)")
    private String idCardFront;

    @Schema(description = "身份证反面图片链接(关键词)")
    private String idCardBack;

    @Schema(description = "排序序号")
    private Integer sortOrder;

    @Schema(description = "状态")
    private EnabledStatusEnum status;

    @Schema(description = "时间区间起")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    private LocalDateTime beginAt;

    @Schema(description = "时间区间止")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
    private LocalDateTime endAt;

}
